package com.ruoyi.dailyoperations.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dailyoperations.mapper.MeetingCheckInMapper;
import com.ruoyi.dailyoperations.domain.MeetingCheckIn;
import com.ruoyi.dailyoperations.service.IMeetingCheckInService;

/**
 * 会议室签到Service业务层处理
 *
 * @author ruoyi
 * @date 2024-09-14
 */
@Service
public class MeetingCheckInServiceImpl implements IMeetingCheckInService
{
    @Autowired
    private MeetingCheckInMapper meetingCheckInMapper;

    /**
     * 查询会议室签到
     *
     * @param id 会议室签到主键
     * @return 会议室签到
     */
    @Override
    public MeetingCheckIn selectMeetingCheckInById(Long id)
    {
        return meetingCheckInMapper.selectMeetingCheckInById(id);
    }

    /**
     * 查询会议室签到列表
     *
     * @param meetingCheckIn 会议室签到
     * @return 会议室签到
     */
    @Override
    public List<MeetingCheckIn> selectMeetingCheckInList(MeetingCheckIn meetingCheckIn)
    {
        return meetingCheckInMapper.selectMeetingCheckInList(meetingCheckIn);
    }

    /**
     * 新增会议室签到
     *
     * @param meetingCheckIn 会议室签到
     * @return 结果
     */
    @Override
    public int insertMeetingCheckIn(MeetingCheckIn meetingCheckIn)
    {
        return meetingCheckInMapper.insertMeetingCheckIn(meetingCheckIn);
    }

    /**
     * 修改会议室签到
     *
     * @param meetingCheckIn 会议室签到
     * @return 结果
     */
    @Override
    public int updateMeetingCheckIn(MeetingCheckIn meetingCheckIn)
    {
        return meetingCheckInMapper.updateMeetingCheckIn(meetingCheckIn);
    }

    /**
     * 修改会议室状态
     *
     * @param meetingCheckIn 会议室签到状态
     * @return 结果
     */
    @Override
    public int updateState(MeetingCheckIn meetingCheckIn)
    {
        return meetingCheckInMapper.updateState(meetingCheckIn);
    }

    /**
     * 批量删除会议室签到
     *
     * @param ids 需要删除的会议室签到主键
     * @return 结果
     */
    @Override
    public int deleteMeetingCheckInByIds(Long[] ids)
    {
        return meetingCheckInMapper.deleteMeetingCheckInByIds(ids);
    }

    /**
     * 删除会议室签到信息
     *
     * @param id 会议室签到主键
     * @return 结果
     */
    @Override
    public int deleteMeetingCheckInById(Long id)
    {
        return meetingCheckInMapper.deleteMeetingCheckInById(id);
    }
}
